# Reference: <https://postmarketos.org/devicepkg>
pkgname=device-samsung-jxelte
pkgdesc="Samsung Galaxy J7(2016)"
pkgver=2
pkgrel=0
url="https://postmarketos.org"
license="MIT"
arch="aarch64"
options="!check !archcheck"
depends="postmarketos-base postmarketos-base-downstream linux-samsung-jxelte mkbootimg msm-fb-refresher"
makedepends="devicepkg-dev"
source="deviceinfo"
subpackages="$pkgname-nonfree-firmware:nonfree_firmware"

build() {
	devicepkg_build $startdir $pkgname
}

package() {
	devicepkg_package $startdir $pkgname
}

nonfree_firmware() {
	pkgdesc="Wifi firmware"
	depends="firmware-samsung-jxelte"
	mkdir "$subpkgdir"
}

sha512sums="
d0633ca7079b52ea9d1bf80c1d6257a5067a54b53a478396a0496875efb06b557bc16bfe0fe890183fb48dc260d05c4be99a404e269390061816ecec9bea2836  deviceinfo
"
